package com.fmcoder.study.ch1.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AopConfig.class);
		
		DemoAnnotationService demoAnnotationService = context.getBean(DemoAnnotationService.class);	
		DemoMothedService demoMothedService = context.getBean(DemoMothedService.class);
		
		demoAnnotationService.add();	
		demoMothedService.add();
		
		context.close();
	}

}
